package sg.edu.nus.iss.billing.service.io;

import java.io.FileNotFoundException;
import java.io.IOException;

public interface IDataLoaderService {

	/**
	 * @return <code>false</code> if the data already exist in DB (data is not
	 *         loaded to DB), <code>true</code> if data is loaded to DB.
	 */
	boolean loadFactoryData();

	void loadData() throws Exception;

	void clearData();
	
	void saveFile(String fileName, Object obj) throws FileNotFoundException, IOException;
	
	void deleteFile(String fileName);
	
	Object findFile(String fileName);
	
}
